package com.game.league.task.table;

import com.game.league.entrance.user.table.User;

import java.util.List;

import cn.bmob.v3.BmobObject;

/**
 * 映射表 - 我的任务清单列表
 * Created by Su on 2019/6/12.
 */
public class MyTask extends BmobObject {
    private User user;          // 用户
    private Task task;          // 任务
    private Integer status;     // 兑换状态   1=处理中； 2= 已驳回； 3=处理完成

    private float price;         // 申请任务时的奖励金额： 防止金额变动引起bug
    private float extraPrice;    // 奖励金额
    private String reason;     // 审核说明；1；审核周期为1-3工作日，请耐心等待  2； 任务流程错误，审核失败  3；当前余额：30

    private String signName;    // 注册所用姓名
    private String signPhone;   // 注册所用手机号
    private List<String> auditImg;  // 审核图片

    public String getStatusText() {
        String title = "";
        if (getStatus() == 1) {
            title = "【处理中】";
        } else if (getStatus() == 2) {
            title = "【已驳回】";
        } else if (getStatus() == 3) {
            title = "【已完成】";
        }
        return title;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public List<String> getAuditImg() {
        return auditImg;
    }

    public void setAuditImg(List<String> auditImg) {
        this.auditImg = auditImg;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getSignPhone() {
        return signPhone;
    }

    public void setSignPhone(String signPhone) {
        this.signPhone = signPhone;
    }

    public float getExtraPrice() {
        return extraPrice;
    }

    public void setExtraPrice(float extraPrice) {
        this.extraPrice = extraPrice;
    }
}
